package com.pcafs.manage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pcafs.manage.domain.PcafsDefaultField;
import com.pcafs.manage.domain.PcafsField;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * 字段信息Mapper接口
 *
 * @author pcafs
 * @date 2022-05-05
 */
public interface PcafsFieldMapper extends BaseMapper<PcafsField> {



    List<PcafsField> queryAll(String tabNameEn);


    List<PcafsField> queryAllField(String tabNameEn);

    @Select("select * from pcafs_default_field where del_flag = '0'")
    List<PcafsDefaultField> queryDefaultField();


    int addTabField(String sql);

    List<Map> selectTabData(@Param("tabNameEn") String tabNameEn);

    Integer haveData(@Param("tabNameEn") String tabNameEn);

    int updateTabField(String sql);

    int delTabField(String sql);

    Integer tabExist(@Param("tabNameEn")String tabNameEn);


    void insertTabVal(String sql);
}
